﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SoftWareLab_Project
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lb_Name.Text = Session["NAME"].ToString();
                lb_Lname.Text = Session["LASTNAME"].ToString();
                lb_Technical.Text = Session["P_TECHNICAL"].ToString();
                lb_depart.Text = Session["NAME_DEPARTMENT"].ToString();
                lb_Manage.Text = "ไม่มี";
            }
        }

        protected void Link_Logout_Click(object sender, EventArgs e)
        {
            Session.Abandon();
            Session.Clear();
            Session.Contents.RemoveAll();
            System.Web.Security.FormsAuthentication.SignOut();
            Response.Redirect("Login.aspx");
        }
    }
}
